package monsmon.game;

import java.awt.Color;
import monsmon.game.tmlt.EntT;

public class Entity{

	private EntT ent_t;
	private int __xloc, __yloc;
	private LevelMap __lvl;

	public Entity(int x, int y, LevelMap lvl, EntT e){
		__xloc = x;
		__yloc = y;
		__lvl = lvl;
		lvl.get_map()[x][y].set_ent(this);
		ent_t = e;
	}

	public void set_lvl(int x, int y, LevelMap lvl){
		set_xy(x, y);
		__lvl = lvl;
	}

	public void set_xy(int x, int y){
		__xloc = x;
		__yloc = y;
	}

	public int get_y(){
		return __yloc;
	}

	public int get_x(){
		return __xloc;
	}

	public LevelMap get_lvl(){
		return __lvl;
	}


	public Color get_fg_col(){
		return ent_t.get_fg();
	}

	public Color get_bg_col(){
		return ent_t.get_bg();
	}

	public char get_char(){
		return ent_t.get_char();
	}


}
